package com.nyist.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.concurrent.TimeUnit;

@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX",fallback = OrderHystrixFallBackService.class)
public interface OrderHystrixUserService {

    @GetMapping("/provider/hystrix/ok/{id}")
    public String printInfo_OK(@PathVariable("id") Integer id);

    @GetMapping("/provider/hystrix/timeout/{id}")
    public String printInfo_TimeOut(@PathVariable("id") Integer id);
}
